<div class="cvs index">
	<h2><?php __('Liste des Cvs');?></h2>
	<table cellpadding="0" cellspacing="0">
	<tr>
			<th><?php echo $this->Paginator->sort('Numero');?></th>
			<th><?php echo $this->Paginator->sort('Titre du CV');?></th>
			<?php /*<th><?php echo $this->Paginator->sort('Centre d\'interet');?></th> */ ?>
			<th><?php echo $this->Paginator->sort('Commencement');?></th>
			<th><?php echo $this->Paginator->sort('Fin');?></th>
			<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
	$i = 0;
	foreach ($cvs as $cv):
		$class = null;
		if ($i++ % 2 == 0) {
			$class = ' class="altrow"';
		}
	?>
	<tr<?php echo $class;?>>
		<td><?php echo $i; ?>&nbsp;</td>
		<td><?php echo $cv['Cv']['title']; ?>&nbsp;</td>
		<?php /* <td><?php echo $cv['Cv']['interests']; ?>&nbsp;</td> */ ?>
		<td><?php echo $cv['Cv']['started_at']; ?>&nbsp;</td>
		<td><?php echo $cv['Cv']['ended_at']; ?>&nbsp;</td>
		<td class="actions">
			<?php echo $this->Html->link(__('Consultation', true), array('action' => 'view', $cv['Cv']['id']), array_merge(array('class' => 'check_btn'), array('title' => 'Consulter'))); ?>
			<?php if($this->Session->read("Auth.User.privilege_id") != 4) : echo $this->Html->link(__('Modification', true), array('action' => 'edit', $cv['Cv']['id']), array_merge(array('class' => 'edit_btn'), array('title' => 'Editer'))); endif; ?>
			<?php echo $this->Html->link(__('Impression', true), array('action' => 'view_popup', $cv['Cv']['id']), array_merge(array('onclick' => "window.open(this.href,'mentions','width=600,height=680,scrollbars=yes');return false"), array('class' => 'print_btn'), array('title' => 'Imprimer'))); ?>
			<?php if(!empty ($cv['Cv']['import'])) : echo $this->Html->link(__('Modification', true),"/files/".$cv['Cv']['import'] , array_merge(array('class' => 'dwn_btn cv', 'id' => 'cv'), array('title' => 'Telecharger'))); endif; ?>
			<?php if($this->Session->read("Auth.User.id") == $cv['Cv']['user_id']) : echo $this->Html->link(__('Suppression', true), array('action' => 'delete', $cv['Cv']['id']), array_merge(array('class' => 'delete_btn'), array('title' => 'Supprimer')), null, sprintf(__('Voulez vous vraiment supprimer # %s?', true), $cv['Cv']['id'])); endif;?>
		</td>
	</tr>
<?php endforeach; ?>
	</table>

	<div class="paging">
	<?php /*
		<?php echo $this->Paginator->prev('<< ' . __('previous', true), array(), null, array('class'=>'disabled'));?>
	 | 	<?php echo $this->Paginator->numbers();?>
 |
		<?php echo $this->Paginator->next(__('next', true) . ' >>', array(), null, array('class' => 'disabled'));?>

	*/ ?>
	</div>
</div>
<!--<div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>
                <li><?php echo $this->Html->link(__('List Cvs', true), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Cv', true), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Users', true), array('controller' => 'users', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New User', true), array('controller' => 'users', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Categories', true), array('controller' => 'categories', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Category', true), array('controller' => 'categories', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Languages', true), array('controller' => 'languages', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Language', true), array('controller' => 'languages', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Professional Records', true), array('controller' => 'professional_records', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Professional Record', true), array('controller' => 'professional_records', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Qualifications', true), array('controller' => 'qualifications', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Qualification', true), array('controller' => 'qualifications', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Skills', true), array('controller' => 'skills', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Skill', true), array('controller' => 'skills', 'action' => 'add')); ?> </li>
	</ul>
</div>-->
